package ru.pbem.olympia.battles;

/**
 * User: Roman Pavlov
 * Date: 25-Oct-2010
 * Time: 19:31:09
 */
public class CombatUnit implements Combatant {
    int meleeAttack;
    int defense;
    int rangedAttack;
    int hitPoints;
    boolean isSiegeDevice;

    public CombatUnit(int meleeAttack, int defense, int rangedAttack, int hitPoints, boolean isSiegeDevice) {
        this.meleeAttack = meleeAttack;
        this.defense = defense;
        this.rangedAttack = rangedAttack;
        this.hitPoints = hitPoints;
        this.isSiegeDevice = isSiegeDevice;
    }

    @Override
    public int getMeleeAttack() {
        return meleeAttack;
    }

    @Override
    public int getDefense() {
        return defense;
    }

    @Override
    public int getRangedAttack() {
        return rangedAttack;
    }

    @Override
    public int getHitPoints() {
        return hitPoints;
    }

    @Override
    public boolean isSiegeDevice() {
        return isSiegeDevice;
    }
}
